<template>
	<view class="container">
		<showTime></showTime>
		这是日历组件。
		<view>日志：{{ info }}</view>
	</view>
</template>

<script>

import showTime from '../../common/showTime.vue';

export default {
	components: { showTime },
	data() {
		return {
			activeKey: 'home',
			info: '',
		}
	},
	mounted() {

	},
	unMounted() {

	},
	methods: {
		onClick(item) {
			this.activeKey = item.key;
		},
		log(...args) {
			console.log(...args);
			const str = args.map(arg => {
				if (arg && typeof arg === 'object') {
					return JSON.stringify(arg);
				}
				return String(arg);
			}).join(' ');
			this.info += '\n' + str;
		}
	}
}
</script>

<style lang="scss"></style>